import request from '@/utils/request'

// 查询架构图列表
export function listAssetInvestmentStructure(query) {
  return request({
    url: '/deal/dealArchitectureDiagram/list',
    method: 'get',
    params: query
  })
}

// 查询架构图详细
export function getAssetInvestmentStructure(id) {
  return request({
    url: '/deal/dealArchitectureDiagram/' + id,
    method: 'get'
  })
}
export function getByDealId(dealId) {
  return request({
    url: '/deal/dealArchitectureDiagram/getByDealId/' + dealId,
    method: 'get'
  })
}

// 保存架构图
export function saveAssetInvestmentStructure(data) {
  return request({
    url: '/deal/dealArchitectureDiagram/save',
    method: 'post',
    data: data
  })
}

// 删除架构图
export function delAssetInvestmentStructure(id) {
  return request({
    url: '/deal/dealArchitectureDiagram/' + id,
    method: 'delete'
  })
}
